package com.gxa.service;

import com.gxa.dto.CommunityDto;
import com.gxa.entity.Community;
import com.gxa.entity.extend.QueryAllCommunity;
import com.gxa.vo.CommunityVo;

import java.sql.SQLException;
import java.util.List;
/**
 * 小区 业务逻辑层 接口
 */
public interface CommunityService {
    List<QueryAllCommunity> queryCommunity() throws SQLException;

    /**
     * 查询所有的小区
     * @return
     */
    List<Community> queryAllCommunity() throws SQLException;
    List<QueryAllCommunity> queryCommunity(Integer page,Integer limit) throws SQLException;
    List<QueryAllCommunity> queryCommunity(Integer page, Integer limit, CommunityDto communityDto) throws SQLException;
    Integer count() throws SQLException;
    Integer count(CommunityDto communityDto) throws SQLException;
    void add(Community community) throws SQLException;
    Community queryByID(Integer cid) throws SQLException;
    void update(Community community) throws SQLException;
    void delete(Integer cid) throws SQLException;

    List<CommunityVo> queryAllCommunityByPageAndComDto(String page, String limit, CommunityDto communityDto);
}
